{extend name="member/common/shop_layout" /}

{block name="content"}

<div class="wrap">
  <div class="tabmenu">

    <!-- submenu-->
    {include file="member/common/submenu"}

    <a class="ncbtn ncbtn-bittersweet" href="<?php echo url('member/Mallconsult/add_mallconsult');?>"><i class="icon-comments-alt"></i>平台客服</a></div>
  <table class="ncm-default-table">
    <thead>
    <tr>
      <th class="w10"></th>
      <th class="tl">咨询内容</th>
      <th class="w150">咨询时间</th>
      <th class="w150">状态</th>
      <th class="w110">操作</th>
    </tr>
    </thead>
    <tbody>
    <?php  if (!empty($consult_list)) { ?>
    <?php foreach($consult_list as $val) { ?>
    <tr class="bd-line">
      <td></td>
      <td class="tl"><?php echo $val['mc_content'];?></td>
      <td><?php echo date('Y-m-d H:i:s', $val['mc_addtime']);?></td>
      <td class=""><?php echo $state[$val['is_reply']];?></td>
      <td class="ncm-table-handle">
        <span><a href="<?php echo url('member/Mallconsult/mallconsult_info', array('id' => $val['mc_id']));?>" class="btn-bluejeans"><i class="icon-eye-open"></i><p>查看</p></a></span>
        <span><a href="javascript:void(0);" onclick="ajax_get_confirm('您确定要删除该信息吗？', '<?php echo url('member/Mallconsult/del_mallconsult', array('id' => $val['mc_id']));?>?a=1');" class="btn-bluejeans"><i class="icon-trash"></i><p>删除</p></a></span>
      </td>
    </tr>
    <?php } ?>
    <?php } else {?>
    <tr>
      <td colspan="20" class="norecord"><div class="warning-option"><i>&nbsp;</i><span>暂无符合条件的数据记录</span></div></td>
    </tr>
    <?php } ?>
    </tbody>
    <tfoot>
    <?php  if (!empty($consult_list)) { ?>
    <tr>
      <td colspan="20"><div class="pagination"> <?php echo $show_page; ?></div></td>
    </tr>
    <?php } ?>
    </tfoot>
  </table>
</div>

{/block}